@import '@common/styles/index.scss';
.container {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border-radius: $border-radius-small;
  :global(video) {
    border-radius: $border-radius-small;
  }
  .videoBox {
    border-radius: $border-radius-small;
  }
  .payBox {
    position: absolute;
    top: -1px;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: $border-radius-small;
    overflow: hidden;

    .alert {
      width: 100%;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-top-left-radius: $border-radius-small;
      border-top-right-radius: $border-radius-small;
      .tipsIcon {
      }

      .tipsText {
        margin-left: $margin-2n;
        font-size: $font-size-base;
      }
    }
  }

  .maskImage {
    position: absolute;
    top: -1px;
    left: 0;
    bottom: 0;
    right: 0;
    background-position: center;
    background-size: cover;

    &::before {
      content: '暂无权限查看该视频';
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 2;
      transform: translate(-50%, -50%);
      width: 234px;
      height: 36px;
      display: inline-block;
      font-size: $font-size-base;
      color: $white;
      text-align: center;
      line-height: 36px;
      border-radius: $border-radius-small;
      background-color: $primary-color;
    }

    &::after {
      content: '';
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      background-color: rgba(0, 0, 0, 0.6);
    }
  }

}

.alertWarn {
  background: $warn-color9;
  .tipsIcon {
    color: $warn-color;
  }

  .tipsText {
    color: $warn-color;
  }
}

.alertError {
  background: $warn-color9;
  .tipsIcon {
    color: $error-color;
  }

  .tipsText {
    color: $error-color;
  }
}
